import 'package:flutter/material.dart';

class PageList extends StatefulWidget {
  final String pageType; //æ–°é—»ç±»åž‹
  @override
  PageList({Key key, this.pageType}) : super(key: key);
  @override
  _PageListState createState() => _PageListState();
}

class _PageListState extends State<PageList>
    with SingleTickerProviderStateMixin {
  AnimationController _controller;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(vsync: this);
  }

  @override
  void dispose() {
    super.dispose();
    _controller.dispose();
  }

  @override
  Widget build(BuildContext context) {
    print(widget.pageType);
    return Container(
      child: Text(widget.pageType),
    );
  }
}
